﻿#include "CmdLineChartCreateLineChartStraightLine.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartCreateLineChartStraightLine::CmdLineChartCreateLineChartStraightLine()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartCreateLineChartStraightLine::~CmdLineChartCreateLineChartStraightLine()
    {
    }

    bool CmdLineChartCreateLineChartStraightLine::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartCreateLineChartStraightLine(m_data);
        return true;
    }

    void CmdLineChartCreateLineChartStraightLine::undo()
    {
        // TODO: undo
    }

    void CmdLineChartCreateLineChartStraightLine::redo()
    {
        execute();
    }

} // namespace PostCommand
